<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  let taskList = [f1, f2, f3, f4]
  function f1 () {
    console.log('f1函数');
  }
  function f2 () {
    console.log('f2函数');
  }
  function f3 () {
    console.log('f3函数');
  }
  function f4 () {
    console.log('f4函数');
  }
  for (let i = 0; i < taskList.length; i++) {
    setTimeout(() => {
      taskList[i]()
    }, 1000)
  }
</script>

</html>